//Shape.cpp
//Function definitions for the shape class

#include "Shape.h"
#include <cmath>

Shape::Shape(const float &p_X, const float &p_Y)
	: x( p_X ), y( p_Y )
{

}

Shape::Shape()
{

}

void Shape::setX(const float &p_X)
{
	x = p_X;
}

void Shape::setY(const float &p_Y)
{
	y = p_Y;
}

float Shape::getX() const
{
	return x;
}

float Shape::getY() const
{
	return y;
}

void Shape::setDistance()
{
	dist = sqrt(pow(Shape::getX(), 2) + pow(Shape::getY(), 2));
}

float Shape::getDistance() const
{
	return dist;
}

float Shape::distance() const
{
	return getDistance();
}

void Shape::setShapeType(string shapeName)
{
	shapeType = shapeName;
}

string Shape::getShapeType()
{
	return shapeType;
}
